<template>
	<view style="width: 96%;margin: auto;height: 100%;">
			<view class="title">{{informationData.informationTitle}}</view>
			<view class="time">{{informationData.releaseTime}}</view>
			<view class="center" v-html="informationData.informationNews">
				{{informationData.informationNews}}
			</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				informationId: "",
				informationData: ""
			}
		},
		onLoad(e) {
			this.informationId = e.informationId;
			this.getDetail();
		},
		onReady() {},
		methods: {
			//获取贴子详细信息
			async getDetail() {
				console.log(this.informationId);
				let res = await this.$http({
					url: "/app/information/informationById",
					method: "POST",
					data: {
						id:this.informationId
					}
				})
				// console.log(res)
				this.informationData = res.data.data;
			}
		}
	}
</script>
<style lang="less" >
	@import "../../../common/global.less";
	.center{
		padding: 5rpx 0rpx;
		img {
				width: 100%;
		}
		p{
			font-size:@fontSize !important;
			letter-spacing: 2rpx;
		}
		span{
			font-size:@fontSize !important;
			letter-spacing: 2rpx;
		}
	}
	.title {
		height: 50rpx;
		line-height: 50rpx;
		width: 100%;
		font-size: 35rpx;
	}
	
	.time {
		height: 50rpx;
		line-height: 50rpx;
		width: 100%;
		font-size: @timeSize ;
		color: @fontcolorthree;
	}
</style>
